<?php echo $javascript->link('add-edit_only.min.js');?>
<div class="almacenes form cont6" style="width: 99%">
<?php echo $form->create('Empresa');?>
<fieldset class="ui-corner-all ui-widget-content">
    <legend class="ui-corner-all ui-widget-header ui-state-active">Adicionando Empresa</legend>
    <div align="left" style="padding:1px 2px 1px 2px;"><?php $session->flash(); ?></div>
    <div class="grid07b">C&oacute;digo</div>
    <div class="grid2">
        <?php echo $form->input('codigo', array(
            'label'=>false,
            'size'=>10
        ));?>
    </div>
    <div class="clear"></div>
    
    <div class="grid07b">Raz&oacute;n Social</div>
    <div class="grid2">
        <?php echo $form->input('razon_social', array(
            'label'=>false,
            'size'=>60
        ));?>
    </div>
    <div class="grid07b">Nom. Comercial</div>
    <div class="grid2">
        <?php echo $form->input('nombre_comercial', array(
            'label'=>false,
            'size'=>60
        ));?>
    </div>
    <div class="clear"></div>

    <div class="grid07b">R.U.C.</div>
    <div class="grid2">
        <?php echo $form->input('ruc', array(
            'label'=>false,
            'size'=>20
        ));?>
    </div>
    <div class="clear"></div>

    <div class="grid07b">Referencia IGV</div>
    <div class="grid2">
        <?php echo $form->input('igv', array(
            'label'=>false,
            'size'=>20
        ));?>
    </div>
    <div class="grid07b">Referencia UIT</div>
    <div class="grid2">
        <?php echo $form->input('uit', array(
            'label'=>false,
            'size'=>20
        ));?>
    </div>
    <div class="clear"></div>

    <div class="grid07b">UM de Peso</div>
    <div class="grid2">
        <?php echo $form->input('peso_unidad_id', array(
            'label'=>false
        ));?>
    </div>
    <div class="grid07b">Moneda</div>
    <div class="grid2">
        <?php echo $form->input('moneda_id', array(
            'label'=>false
        ));?>
    </div>
    <div class="clear"></div>

    <div class="grid07b">Ref. Detracci&oacute;n</div>
    <div class="grid2">
        <?php echo $form->input('detraccion', array(
            'label'=>false
        ));?>
    </div>
    <div class="grid07b">M&iacute;nimo S/Perc.</div>
    <div class="grid2">
        <?php echo $form->input('importe_min_sin_percepcion', array(
            'label'=>false
        ));?>
    </div>
    <div class="clear"></div>

    <div class="grid07b">% de Retenci&oacute;n</div>
    <div class="grid2">
        <?php echo $form->input('retencion', array(
            'label'=>false
        ));?>
    </div>
    <div class="grid07b">M&iacute;nimo S/Ret.</div>
    <div class="grid2">
        <?php echo $form->input('importe_min_retencion', array(
            'label'=>false
        ));?>
    </div>
    <div class="clear"></div>

    <br/>
    <fieldset class="ui-corner-all ui-widget-header">
        <legend class="ui-corner-all ui-widget-header">Retenci&oacute;n de 4at Categor&iacute;a</legend>
        <div class="grid07b">Ret. por Doc.</div>
        <div class="grid1">
            <?php echo $form->input('retencion_cas_documento', array(
                'label'=>false
            ));?>
        </div>
        <div class="grid07b">Ret. Mensual</div>
        <div class="grid1">
            <?php echo $form->input('retencion_cas_mensual', array(
                'label'=>false
            ));?>
        </div>
        <div class="grid07b">% Ret.</div>
        <div class="grid1">
            <?php echo $form->input('retencion_cas', array(
                'label'=>false
            ));?>
        </div>
        <div class="clear"></div>
    </fieldset>
    
    <fieldset class="ui-corner-all ui-widget-header">
        <legend class="ui-corner-all ui-widget-header">Cantidad de Items en Detalles</legend>
        <div class="grid07b">Facturas</div>
        <div class="grid2">
            <?php echo $form->input('items_factura', array(
                'label'=>false
            ));?>
        </div>
        <div class="grid07b">Boletas</div>
        <div class="grid2">
            <?php echo $form->input('items_boleta', array(
                'label'=>false
            ));?>
        </div>
        <div class="clear"></div>

        <div class="grid07b">G/R Reparto</div>
        <div class="grid2">
            <?php echo $form->input('items_guia_remision_reparto', array(
                'label'=>false
            ));?>
        </div>
        <div class="grid07b">G/R Distrib.</div>
        <div class="grid2">
            <?php echo $form->input('items_guia_remision_distribucion', array(
                'label'=>false
            ));?>
        </div>
        <div class="clear"></div>

        <div class="grid07b">C.Percepci&oacute;n</div>
        <div class="grid2">
            <?php echo $form->input('items_comprobante_percepcion', array(
                'label'=>false
            ));?>
        </div>
        <div class="clear"></div>
    </fieldset>
</fieldset>
<?php echo $form->submit('Guardar', array('div' => false,'class' => 'btnsave'));?>
<?php echo $html->link('Cancelar', array('action'=>'index'), array('class'=>'lnkbutton btncancel'));?>
<?php echo $form->end();?>
</div><p/>
